package com.zty.xiaomi.server.Mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface InsuranceMapper {
    @Select("select insurance_id,category_id,icon,name,insurance_describe,time,price,status from insurance where category_id = #{category_id} and status = 0")
    List<com.zty.xiaomi.server.Entity.Insurance.Insurance> getInsuranceByCategoryId(int category_id);

    @Select("select insurance_id,category_id,icon,name,insurance_describe,time,price,status from insurance where insurance_id = #{insurance_id} and status = 0")
    com.zty.xiaomi.server.Entity.Insurance.Insurance getInsuranceByInsuranceyId(int insurance_id);
}
